/**
 * @file Network.Net.h
 *
 * @ingroup	libNetwork
 * @brief	structures for D3 routing protocol on network layer
 *			
 * @author	Andreas Schlueter <mersaultpatrice@gmail.com>
 * @date	Oct 2008
 * @version	0.5
 */

#ifndef NETWORK_NET_H
#define NETWORK_NET_H

#include <Network.TP.h>

#define NET_HEADER_SIZE	1 ///< size of routing header

/**
 * (16bit) key identifies a data packet
 */
__attribute__((packed))typedef struct{
	///TODO move seg_type to segment structure -> packet_d3_t obsolete!
	uint8_t		seg_type  __attribute__((packed));	///< defines type of segment (start, end, or intermediate segment)
	//uint8_t	cost  __attribute__((packed));	///< d3 cost field
	segment_t	seg __attribute__((packed));	///< payload container (asure even address!)
	
}packet_d3_t;

#endif


